/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bgu.sonar.util.ui.sat;

import bgu.sonar.util.ui.TopComponents;
import java.util.LinkedList;
import java.util.List;
import org.openide.windows.TopComponent;

/**
 *
 * @author bennyl
 */
public class Satallites {

    private LinkedList<Satalite> sats = new LinkedList<>();

    public Satallites add(TopComponent tc, String mode) {
        sats.add(new Satalite(tc, mode));
        return this;
    }

    public Satallites add(Class<? extends TopComponent> tc, String mode) {
        return add(TopComponents.lookup(tc), mode);
    }

    public List<Satalite> list() {
        return sats;
    }
    
    
    
    public static class Satalite {

        public TopComponent tc;
        public String mode;

        public Satalite(TopComponent tc, String mode) {
            this.tc = tc;
            this.mode = mode;
        }
    }
}
